package com.graduation.apiservice.controller;

import com.graduation.pojo.vo.LegalDocumentDetailVO;
import com.graduation.service.LegalDocumentService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/legalDocument")
@RequiredArgsConstructor
public class LegalDocumentController {

    private final LegalDocumentService legalDocumentService;

    @GetMapping("/detail/{id}")
    public LegalDocumentDetailVO detail(@PathVariable("id") Long id) {
        return legalDocumentService.detail(id);
    }


}
